// import { Component } from 'react'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import getUserInfo from '../../components/userLogin'
import './index.scss'


export default  function Index() {
    const clickPlanItem = () => {
        Taro.navigateTo({
            url: '/pages/index/index'
        })
    }
    const  checkInfo = async ()=>{
        const res = await getUserInfo()
        console.log('0-909909090909',res);  
        if(res){
            Taro.navigateTo({
                url: '/pages/index/index'
            })
        }  
   } 
   checkInfo()
    
    
    return (
        <View className='w-100 h-100 d-f fd-c jc-c at-c index'>
            <View onClick={clickPlanItem}>welcome</View>
        </View >
    )
}
